<!DOCTYPE html>
<html>

	<head>
		<title>评论详情</title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<link rel="stylesheet" href="/js/plugins/bootstrap-4.1.1-dist/css/bootstrap.min.css">
		<script src="/js/plugins/jquery/jquery.min.js"></script>
		<script src="/js/plugins/jrender/jrender.min.js"></script>
		<script src="/js/plugins/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="/css/font/css/font-awesome.min.css" />
		<link rel="stylesheet" href="/css/reset.css" />
		<link rel="stylesheet" href="/css/message.css" />
		<link rel="stylesheet" href="/js/plugins/dialog2/dialog.css">
		<script src="/js/plugins/dialog2/dialog.min.js"></script>
		<script src="/js/common.js"></script>

		<script>
            var dataArr=[];//合并数据的容器
            var currentPage=1;//默认第一页数据
            function queryForPage() {
                //获取回复我的攻略评论的回复人的基本信息
                $.get("/commentReplies/repliers",{currentPage:currentPage},function (data) {
					var list = data.list;
					$.each(list,function (index, item) {
                        $(".itemList").append("<dd>" +
                            "<p><a href="+"../userProfiles.html?userId="+item.user.id+"><img src=\""+item.user.headImgUrl+"\" style=\"width: 20px;height: 20px;\"/></a> <span>"+item.user.nickName+"</span> 回复了您的评论：</p>" +
                            "<a href="+"/mine/strategyComment.html?strategyCommentId="+item.strategyComment.id+"><p>"+item.content+"</p>" +
                            "<p>"+item.createTime+"</p>" +
                            "</dd></a>")
                    })
                    if(currentPage>1&&currentPage>=data.pages){
                        $(document).dialog({
                            type : 'notice',
                            infoText: '到底啦！',
                            autoClose: 1000,
                            position: 'center'  // center: 居中; bottom: 底部
                        });
                    }
                });
            }
            $(function () {
                queryForPage();
                //当页面滚动条变化时，执行的函数
                $(window).scroll(function () {
                    if($(document).scrollTop()+$(window).height()>=$(document).height()-0.1){
                        currentPage++;
                        queryForPage();
                    };
                })
            })
		</script>
	</head>

	<body>
		<div class="search-head">
			<div class="row nav-search">
				<div class="col">
					<a href="javascript:history.go(-1);">
						<span><i class="fa fa-chevron-left" ></i></span>
					</a>
				</div>
				<div class="col">
					<span>评论详情</span>
				</div>
				<div class="col"></div>
			</div>
		</div>
			<div class="container systemMsg">
					<dl class="itemList" render-loop="list">

					</dl>
			</div>

	</body>

</html>